@@ -58,5 +58,6 @@ module Agents |
||
58 | 58 |
create_event :payload => info.merge(payload) |
59 | 59 |
end |
60 | 60 |
end |
61 |
+ |
|
61 | 62 |
end |
62 | 63 |
end |
@@ -21,7 +21,7 @@ describe Agents::PdfInfoAgent do |
||
21 | 21 |
|
22 | 22 |
it "should call HyPDF" do |
23 | 23 |
expect { |
24 |
- stub(agent).open { "data" } |
|
24 |
+ mock(agent).open('http://mypdf.com') { "data" } |
|
25 | 25 |
mock(HyPDF).pdfinfo('data') { {title: "Huginn"} } |
26 | 26 |
agent.receive([@event]) |
27 | 27 |
}.to change { Event.count }.by(1) |